package cn.huaguo.domain.wallet.service;

import cn.huaguo.domain.wallet.model.entity.WalletEntity;
import cn.huaguo.domain.wallet.repository.IWalletRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author：Arvin
 * @description：钱包接口实现
 * @Date：2024/5/19 17:59
 */
@Service
public class WalletService implements IWalletService {
    @Resource
    private IWalletRepository walletRepository;

    /**
     * 获取钱包余额
     * @param userId
     * @return
     */
    @Override
    public WalletEntity getWalletInfo(String userId) {
        return walletRepository.getWalletInfo(userId);
    }
}
